<template>
  <!-- 首页 -->
  <div class="home">
    <div class="home-content">
      <div class="home-content-title">
        <p>{{ t('home.slogen') }}</p>
        <p class="home-content-title-desc">
          {{ t('home.slogen2') }}
        </p>
      </div>
      <div class="home-content-operation">
        <el-button type="primary">
          <span>{{ t('home.getStarted') }}</span>
        </el-button>
        <el-button type="primary" plain>
          <span>{{ t('home.learnMore') }}</span>
        </el-button>
      </div>
    </div>
    <div class="home-graphic">
      <ImgAudio class="home-graphic-audio" />
    </div>
  </div>
</template>

<script setup lang="ts">
import ImgAudio from './svg/Audio.vue';
import { useI18n } from 'vue-i18n';

const { t } = useI18n();

defineOptions({
  name: 'AppHome',
});
</script>

<style scoped lang="scss">
.home {
  height: 100%;
  width: 100%;
  padding: 0 32px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  &-content {
    height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 64px;
    &-title {
      width: 100%;
      font-size: 48px;
      font-weight: 600;
      color: #fff;
      line-height: 1.2;
      p:last-child {
        font-size: 16px;
        color: var(--color-text-inactive);
        line-height: 1.5;
        margin-top: 24px;
        font-weight: 400;
      }
    }
    &-operation {
      display: flex;
      gap: 16px;
    }
  }
  &-graphic {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
</style>
